Adwaita: darker background for popovers
authorLapo Calamandrei <calamandrei@gmail.com>
Fri, 5 Feb 2016 13:10:36 +0000 (14:10 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Fri, 5 Feb 2016 13:11:30 +0000 (14:11 +0100)
gtk/theme/Adwaita/_colors.scss
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index c4c69fef6467444bb89b20090cb24e19fe7b14cb..4ac90fe6912d3f307f5a59992ff8d2e83667469f 100644 (file)
@@ -18,6 +18,8 @@ $top_hilight: $borders_edge;
 $dark_fill: mix($borders_color, $bg_color, 35%);
 $headerbar_color: if($variant == 'light', lighten($bg_color, 5%), darken($bg_color, 3%));
 $menu_color: if($variant == 'light', $base_color, mix($bg_color, $base_color, 20%));
+$popover_bg_color: darken($bg_color, 5%);
+$popover_hover_color: $bg_color;
 
 $scrollbar_bg_color: darken($bg_color, 7%);
 
index 2bce268a17e95f5a28d37305c9bf6760a6aecbb1..1e07337e31c80d3b933b85d3707a160352fbf8e9 100644 (file)
@@ -804,7 +804,7 @@ modelbutton.flat,
   outline-offset: -2px;
 
   @extend %undecorated_button;
-  &:hover { background-color: $base_hover_color; } // FIXME
+  &:hover { background-color: $popover_hover_color; }
 
   &:selected { @extend %selected_items; }
 
@@ -1733,12 +1733,16 @@ menuitem {
 popover.background {
   padding: 2px;
   border-radius: 5px;
+  background-color: $popover_bg_color;
 
   &, .csd & { border: 1px solid $borders_color; }
 
   box-shadow: 0 1px 2px transparentize(black, 0.7);
 
-  &:backdrop { box-shadow: none; }
+  &:backdrop {
+    background-color: $backdrop_bg_color;
+    box-shadow: none;
+  }
 
   > list,
   > .view,
index 3774814f6ced06db5119c2f0d9c026459fdf7e6c..c8b86029925922eb37ae38d48f2d0631d7258428 100644 (file)
@@ -1196,7 +1196,7 @@ modelbutton.flat,
   outline-offset: -2px; }
   modelbutton.flat:hover,
   .menuitem.button.flat:hover {
-    background-color: rgba(238, 238, 236, 0.05); }
+    background-color: #393f3f; }
   modelbutton.flat check:last-child,
   modelbutton.flat radio:last-child,
   .menuitem.button.flat check:last-child,
@@ -2118,10 +2118,12 @@ menuitem radio {
 popover.background {
   padding: 2px;
   border-radius: 5px;
+  background-color: #2d3232;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
   popover.background, .csd popover.background {
     border: 1px solid #1c1f1f; }
   popover.background:backdrop {
+    background-color: #393f3f;
     box-shadow: none; }
   popover.background > list,
   popover.background > .view,
index c65b53d11bbe72573b633069cfc2cb73dd916408..02c4090e0390ac7f6df2f876ebd76d3f5fa0f71a 100644 (file)
@@ -1196,7 +1196,7 @@ modelbutton.flat,
   outline-offset: -2px; }
   modelbutton.flat:hover,
   .menuitem.button.flat:hover {
-    background-color: rgba(46, 52, 54, 0.05); }
+    background-color: #e8e8e7; }
   modelbutton.flat check:last-child,
   modelbutton.flat radio:last-child,
   .menuitem.button.flat check:last-child,
@@ -2128,10 +2128,12 @@ menuitem radio {
 popover.background {
   padding: 2px;
   border-radius: 5px;
+  background-color: #dcdcda;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
   popover.background, .csd popover.background {
     border: 1px solid #9d9d99; }
   popover.background:backdrop {
+    background-color: #e8e8e7;
     box-shadow: none; }
   popover.background > list,
   popover.background > .view,